package com.yy.finvideoplayer.media

/**
 * ExoPlayer 错误码常量，与 IMediaPlayer 保持兼容
 */
object ExoPlayerError {
    // 与 IMediaPlayer 错误码兼容
    const val MEDIA_ERROR_UNKNOWN = 1
    const val MEDIA_ERROR_SERVER_ABORTED = 100
    const val MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK = 200
    const val MEDIA_ERROR_IO = -1004
    const val MEDIA_ERROR_MALFORMED = -1007
    const val MEDIA_ERROR_BAD_INTERLEAVING = -1008
    const val MEDIA_ERROR_UNSUPPORTED = -1010
    const val MEDIA_ERROR_TIMED_OUT = -110

    // ExoPlayer 特定错误码
    const val ERROR_CODE_GENERIC = 1000
    const val ERROR_CODE_IO_NETWORK = 1001
    const val ERROR_CODE_PARSING = 1002
    const val ERROR_CODE_DECODING = 1003
}